package com.bwsoft.admin.domain;

// default package

import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * 质量控制参与者POJO
 * 
 * @author Cui Bowen
 */
@Entity
@Table(name = "qc_qualitycontrol_joiner")
public class QualityControlJoiner implements java.io.Serializable {

	private static final long serialVersionUID = 6854964202039276646L;
	@Id
	@Column(name = "id")
	@GenericGenerator(name = "idGenerator", strategy = "identity")
	@GeneratedValue(generator = "idGenerator")
	private Integer id;
	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "qcid")
	private QualityControl qualityControl;
	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "joinerId")
	private Account joinerId;
	private Date addTime;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public QualityControl getQualityControl() {
		return qualityControl;
	}

	public void setQualityControl(QualityControl qualityControl) {
		this.qualityControl = qualityControl;
	}

	public Account getJoinerId() {
		return joinerId;
	}

	public void setJoinerId(Account joinerId) {
		this.joinerId = joinerId;
	}

	public Date getAddTime() {
		return addTime;
	}

	public void setAddTime(Date addTime) {
		this.addTime = addTime;
	}

}